home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / bfd / Makefile.dos < prev    next >
Encoding:
Makefile  |  1992-02-21  |  11.4 KB  |  382 lines

  1. # This file was generated automatically by configure. Do not edit.
  2. target_makefile_frag = ./config/mt-h8300-coff
  3. host_makefile_frag =
  4. CROSS=-DCROSS_COMPILE
  5. ALL=all.cross
  6. host_alias = sun4
  7. host_cpu = sparc
  8. host_vendor = sun
  9. host_os = sunos411
  10. version_path = 
  11. target_alias = h8300hds
  12. target_cpu = h8300
  13. target_vendor = hitachi
  14. target_os = hds
  15. subdir =
  16. unsubdir = .
  17. VPATH = .
  18. #    Makefile template for Configure for the BFD library.
  19. #    Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  20. #    Written by Cygnus Support.
  21. # This file is part of BFD, the Binary File Descriptor library.
  22. # This program is free software; you can redistribute it and/or modify
  23. # it under the terms of the GNU General Public License as published by
  24. # the Free Software Foundation; either version 2 of the License, or
  25. # (at your option) any later version.
  26. # This program is distributed in the hope that it will be useful,
  27. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  29. # GNU General Public License for more details.
  30. # You should have received a copy of the GNU General Public License
  31. # along with this program; if not, write to the Free Software
  32. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  33.  
  34. # $Id: Makefile.dos,v 1.1 1992/02/21 22:54:37 sac Exp $
  35.  
  36. srcdir = .
  37.  
  38. prefix = /usr/local
  39.  
  40. bindir = $(prefix)/bin
  41. datadir = $(prefix)/lib
  42. libdir = $(prefix)/lib
  43. mandir = $(datadir)/man
  44. man1dir = $(mandir)/man1
  45. man2dir = $(mandir)/man2
  46. man3dir = $(mandir)/man3
  47. man4dir = $(mandir)/man4
  48. man5dir = $(mandir)/man5
  49. man6dir = $(mandir)/man6
  50. man7dir = $(mandir)/man7
  51. man8dir = $(mandir)/man8
  52. man9dir = $(mandir)/man9
  53. infodir = $(datadir)/info
  54. includedir = $(prefix)/include
  55. docdir = $(srcdir)/doc
  56.  
  57. SHELL = /bin/sh
  58.  
  59. INSTALL = install -c
  60. INSTALL_PROGRAM = $(INSTALL)
  61. INSTALL_DATA = $(INSTALL)
  62.  
  63. AR = ar
  64. AR_FLAGS = qv
  65. BISON = bison
  66. MAKEINFO = makeinfo
  67. RANLIB = ar rvs
  68.  
  69. INCDIR = $(srcdir)/../include
  70. CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
  71. DEP = mkdep
  72. MINUS_G=-g
  73.  
  74. SUBDIRS = doc
  75.  
  76.  
  77. # Change this (to MINIMIZE=1) to save space in executables.
  78. # Currently, all this does is control the target_vector in targets.c.
  79. MINIMIZE=0
  80.  
  81. TARGETLIB = libbfd.a
  82. CFLAGS = -g -O $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
  83.  
  84.  
  85. BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
  86.     archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o
  87.  
  88. BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
  89.     cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o
  90.  
  91. BFD_BACKENDS = ieee.o srec.o coff-h8300.o
  92.  
  93.  
  94.  
  95.  
  96. OPTIONAL_BACKENDS = trad-core.o
  97.  
  98. #### host and target dependent Makefile fragments come in here.
  99. # Target: Hitachi H8/300 using COFF and IEEE-695 object file format
  100. # Avoid dragging in a lot of other architectures and formats.
  101. HDEFINES=-D__MSDOS__ -D__GO32__
  102. TDEFAULTS=-DBFD -DSELECT_ARCHITECTURES=bfd_h8300_arch -DSELECT_VECS=&ieee_vec\,&srec_vec\,&h8300coff_vec
  103. CC=gcc
  104. ###
  105.  
  106. BFD_H=$(INCDIR)/bfd.h
  107.  
  108. # C source files that correspond to .o's.
  109. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
  110.      coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
  111.      oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \
  112.      format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c seclet.c \
  113.      coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
  114.     cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
  115.      cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c
  116.  
  117. STAGESTUFF = $(TARGETLIB) $(OFILES)
  118.  
  119. all: $(TARGETLIB)
  120.  
  121. #    $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)"
  122.  
  123. info: force
  124.     $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
  125.  
  126. install-info: force
  127.     $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
  128.  
  129. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  130. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  131.  
  132. $(TARGETLIB): $(OFILES)
  133.      -rm -f $(TARGETLIB)
  134.      >bfd.rf $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  135.      $(AR) @bfd.rf
  136.      $(RANLIB) $(TARGETLIB)
  137.  
  138. # When compiling targets.c, supply the default target info from configure.
  139. targets.o: targets.c
  140.     >targets.rf $(CFLAGS) -c -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) targets.c
  141.     $(CC) @targets.rf
  142.  
  143. subdir_do: force
  144.     for i in $(DODIRS); do \
  145.         if [ -d $(unsubdir)/$$i ] ; then \
  146.             if (cd $(unsubdir)/$$i$(subdir); \
  147.                 $(MAKE) \
  148.                     "against=$(against)" \
  149.                     "AR=$(AR)" \
  150.                     "AR_FLAGS=$(AR_FLAGS)" \
  151.                     "CC=$(CC)" \
  152.                     "RANLIB=$(RANLIB)" \
  153.                     "BISON=$(BISON)" $(DO)) ; then true ; \
  154.             else exit 1 ; fi ; \
  155.         else true ; fi ; \
  156.     done
  157.  
  158. stage1: force
  159.     - mkdir stage1
  160.     - mv -f $(STAGESTUFF) stage1
  161.     $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
  162.  
  163. stage2: force
  164.     - mkdir stage2
  165.     - mv -f $(STAGESTUFF) stage2
  166.     $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
  167.  
  168. stage3: force
  169.     - mkdir stage3
  170.     - mv -f $(STAGESTUFF) stage3
  171.     $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
  172.  
  173. against=stage2
  174.  
  175. comparison: force
  176.     for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  177.     $(MAKE) subdir_do DO=comparison "DODIRS=$(SUBDIRS)"
  178.  
  179. de-stage1: force
  180.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  181.     - rmdir stage1
  182.     $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
  183.  
  184. de-stage2: force
  185.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  186.     - rmdir stage2
  187.     $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
  188.  
  189. de-stage3: force
  190.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  191.     - rmdir stage3
  192.     $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
  193.  
  194. tags etags: TAGS
  195.  
  196. TAGS: force
  197.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  198.  
  199. clean:
  200.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  201.     $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)"
  202.  
  203. clobber realclean: clean
  204.     rm -f libbfd.a TAGS
  205.     $(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)"
  206.  
  207. # Mark everything as depending on config.status, since the timestamp on
  208. # sysdep.h might actually move backwards if we reconfig and relink it
  209. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  210. # dos - don't do that.
  211. RECONFIG = 
  212. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
  213. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
  214. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  215. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  216.  
  217. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  218. cpu-i386.o: cpu-i386.c
  219.  
  220. saber:
  221.     #suppress 65 on bfd_map_over_sections 
  222.     #suppress 66 on bfd_map_over_sections 
  223.     #suppress 67 on bfd_map_over_sections 
  224.     #suppress 68 on bfd_map_over_sections 
  225.     #suppress 69 on bfd_map_over_sections 
  226.     #suppress 70 on bfd_map_over_sections 
  227.     #suppress 110 in bfd_map_over_sections 
  228.     #suppress 112 in bfd_map_over_sections 
  229.     #suppress 530 
  230.     #suppress 590 in swap_exec_header 
  231.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  232.     #suppress 590 in bfd_dont_truncate_arname
  233.     #suppress 590 on ignore 
  234.     #suppress 590 on abfd 
  235.     #setopt load_flags $(CFLAGS)
  236.     #load $(CFILES)
  237.  
  238.  
  239. #-----------------------------------------------------------------------------
  240. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  241. #
  242. # 'VERSION' file must be present and contain a string of the form "x.y"
  243. #-----------------------------------------------------------------------------
  244.  
  245. ver960.c: FORCE
  246.     rm -f ver960.c
  247.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  248.  
  249.  
  250. # This target should be invoked before building a new release.
  251. # 'VERSION' file must be present and contain a string of the form "x.y"
  252. #
  253. roll:
  254.     @V=`cat VERSION`        ; \
  255.     MAJ=`sed 's/\..*//' VERSION`    ; \
  256.     MIN=`sed 's/.*\.//' VERSION`    ; \
  257.     V=$$MAJ.`expr $$MIN + 1`    ; \
  258.     rm -f VERSION            ; \
  259.     echo $$V >VERSION        ; \
  260.     echo Version $$V
  261.  
  262. # Dummy target to force execution of dependent targets.
  263. #
  264. force:
  265.  
  266. install:
  267.     $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
  268.     $(RANLIB) $(libdir)/libbfd.a
  269.     $(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h
  270.     $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)"
  271.  
  272. # Target to uncomment host-specific lines in this makefile.  Such lines must
  273. # have the following string beginning in column 1: #__<hostname>__#
  274. # Original Makefile is backed up as 'Makefile.old'.
  275. #
  276. # Invoke with:  make make HOST=xxx
  277. #
  278. make:
  279.     -@if test $(HOST)x = x ; then \
  280.         echo 'Specify "make make HOST=???"'; \
  281.         exit 1; \
  282.     fi ; \
  283.     grep -s "^#The next line was generated by 'make make'" Makefile; \
  284.     if test $$? = 0 ; then    \
  285.         echo "Makefile has already been processed with 'make make'";\
  286.         exit 1; \
  287.     fi ; \
  288.     mv -f Makefile Makefile.old; \
  289.     echo "#The next line was generated by 'make make'"     >Makefile ; \
  290.     echo "HOST=$(HOST)"                    >>Makefile ; \
  291.     echo                            >>Makefile ; \
  292.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  293.  
  294. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  295.     $(SHELL) ./config.status
  296.  
  297. dep: $(CFILES)
  298.     mkdep $(CFLAGS) $?
  299.  
  300. gen-aout:  $(srcdir)/gen-aout.c
  301.     $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  302.  
  303. aout-params.h: gen-aout
  304.     ./gen-aout > aout-params.h
  305.  
  306. host-aout.o:  aout-params.h
  307.  
  308. headers:
  309.     (cd $(docdir); $(MAKE) protos)
  310.     # Rebuild prototypes in bfd.h
  311.     cp $(docdir)/bfd.h $(BFD_H)
  312.     cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
  313.     cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
  314.  
  315. bfd.info:
  316.     ( cd $(docdir); $(MAKE) bfd.info)
  317.  
  318. bfd.dvi:
  319.     (cd $(docdir); $(MAKE) bfd.dvi)
  320.  
  321. bfd.ps: 
  322.     (cd $(docdir); $(MAKE) bfd.ps)
  323.  
  324. # What appears below is generated by a hacked mkdep using gcc -MM.
  325.  
  326. # DO NOT DELETE THIS LINE -- mkdep uses it.
  327. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  328.  
  329. libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  330. opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  331. bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  332. archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  333.   $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h 
  334. targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  335. cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  336. archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
  337. aout64.o : aout64.c 
  338. aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
  339.   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
  340.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  341. sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  342.   libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  343.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  344. demo64.o : demo64.c 
  345.  
  346. srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  347. oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  348.   $(INCDIR)/oasys.h liboasys.h 
  349. ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  350.   $(INCDIR)/ieee.h libieee.h 
  351. coff-h8300.o: coff-h8300.c  $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  352.   $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  353. format.o : format.c $(INCDIR)/bfd.h \
  354.   $(INCDIR)/obstack.h libbfd.h 
  355. section.o : section.c $(INCDIR)/bfd.h \
  356.   $(INCDIR)/obstack.h libbfd.h 
  357. core.o : core.c $(INCDIR)/bfd.h \
  358.   $(INCDIR)/obstack.h libbfd.h 
  359. syms.o : syms.c $(INCDIR)/bfd.h \
  360.   $(INCDIR)/obstack.h libbfd.h 
  361. syms.o : stab-syms.c
  362. reloc.o : reloc.c $(INCDIR)/bfd.h \
  363.   $(INCDIR)/obstack.h libbfd.h 
  364.  
  365. trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  366.   libbfd.h libaout.h 
  367. newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  368.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  369.   $(INCDIR)/aout/ar.h libaout.h 
  370. i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  371.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  372.   $(INCDIR)/aout/ar.h libaout.h 
  373. bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  374.   $(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h 
  375.  
  376. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  377.  
  378.